package com.king.springframework.core.io;

import cn.hutool.core.lang.Assert;

import java.io.IOException;
import java.io.InputStream;

public class ClassPathResource  implements Resource{
    private final String path;

    private ClassLoader classLoader;

    public ClassPathResource(String path){
        this(path,(ClassLoader) null);
    }


    public ClassPathResource(String path,ClassLoader classLoader){
        Assert.notNull(path,"Path must be not null");
        this.path = path;
        this.classLoader = classLoader;
    }

    @Override
    public InputStream getInputStream() throws IOException {
        return null;
    }

    public String getPath() {
        return path;
    }
}
